
<div class="container-fluid" style = "">
  <div class="row-fluid">
    
    <div class="span6 offset2" id = "">
    	<div id="notification_ctn"></div>
    	<div id="main_ctn"></div>
    </div>
    
    <div class="span2 " id = "navi_ctn">
      <!--Sidebar content-->
    </div>
    
  </div>
</div>

<script>

function reloadMain(){
	$.get("<?php if (!isset($main_url))$main_url = '';echo base_url($main_url)?>", function(result){
		$("#main_ctn")[0].innerHTML = (result);
		if(location.href.match('.*#.*')){
			location.href = location.href;
		}
		<?php if (!isset($js_load)) {$js_load = array();} ?>
			<?php foreach ($js_load as $js_url):?>
				$.getScript("<?php echo base_url($js_url);?>");
		<?php endforeach;?>
	});
}

function reloadNavi(){
	$.get("<?php if (!isset($loc))$loc = 'home';echo base_url('index.php/blog/navi_bar/')."/".$loc?>", function(result){
		$("#navi_ctn").html(result);
	});
}

function reloadNotification(){
	$.get("<?php echo base_url('index.php/notification/') ?>", function(result){
		$("#notification_ctn").html(result);
	});
}
addLoadEvent(function(){
	
	reloadNavi();
	reloadMain();
	reloadNotification();
	
});

</script>